package com.pj.wisdomlogistics.cons;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by zhang on 2017/3/27.
 */

public class Cons {
    public static class SPCons {
        public static final String SP_NAME = "wisdom_logistics";
        public static final String IS_FIRST = "isFirst";
        public static final String USER = "user";
        public static final String THEME = "theme";
    }

    public static class Observable {
        public static final int REGISTER_NETWORK_STATE_CHANGE = 1;
    }

    public static class Bundle {

    }

    public static class ResponseCons {
        public static final int EX_CODE_OVERTIME = -1;
        public static final int EX_CODE_JSON_SYNTAX = -2;
        public static final int EX_CODE_OTHER = -3;
        public static final int EX_CODE_NO_NET = -4;
    }

    public static class EventCode {

    }

    public static class Other {
        public static final int REGIST = 801;
        public static final int MY_APPLY = 802;
        public static final int MY_TRANSACT = 803;
        public static final String STAMP_URL = "stamp_url";
        public static final int SIGN_FILE = 804;
    }

    public static class portion {
        public static final int PORTION_IDS = 1;
    }


    public static class Badger{
        public static final int BADGER_APPLY = 210;
        public static final int BADGER_SERVICE = 211;
    }

    public static class RoleId{
        public static final String SIGN = "f63ec75d5e8464ab015e847715c9000d";
        public static final String SIGN_QLD = "f63ec75d5e992332015e9d2c37ae0023";
        public static final String CHECK_HW = "402848d05fc8820b015fd6f8f19d0014";
        public static final String CHECK_CAR = "f63ec75d5e849386015e886ff47c0012";
        public static final String CHECK_MEAL = "f63ec75d5e849386015e887106fe0013";
        public static final String PORITION_HW = "402848d05f562a0d015f5b44b1330002";
        public static final String PORITION_CAR = "402848d05f562a0d015f5b45a4a10003";
        public static final String PORITION_MEAL= "402848d05f562a0d015f5b46973d0004";
        public static final String PORITION_REPAIR= "402848d05f562a0d015f5b46ed2c0005";
        public static final String ORDER_REPAIR = "f63ec75d5e9deb7f015e9ea763850001";
        public static final String WYZG_HW = "402848d05f8edf68015f90114fa00001";
        public static final String GZR = "f63ec75d5e84800b015e848237080000";//郭主任 只查看不处理
    }

    public static class DeptId{
        public static final String DEPT_HW = "f63ec75d5e8464ab015e8473b3d0000a";
        public static final String DEPT_CAR = "f63ec75d5e8464ab015e8473f281000b";
        public static final String DEPT_MEAL = "f63ec75d5e8464ab015e84734e2f0009";
        public static final String DEPT_REPAIR = "f63ec75d5e849386015e88669b2a0011";
    }

    public static class Date{
        public static final int  DATE = 301;
    }

    public static class Business{
        public static final String BUSINESS = "business";
    }


    public static class UserType {
        // public static final int NORMAL_ACCOUNT = 0; //普通帐号
        public static final int MANAGE_ACCOUNT_1 = 0; //管理帐号
        public static final int MANAGE_ACCOUNT_2 = 2; //管理帐号
        public static final int APPLY_ACCOUNT = 1;  //申请帐号
        //  public static final int CHECK_ACCOUNT = 3;  //查看帐号
    }

    public static class ApplyType {
        public static final int APPLY_WMDC = 1; //外卖点餐
        public static final int APPLY_GWYC = 2; //公务用车
        public static final int APPLY_HYS = 3; //会议室申请
        public static final int APPLY_WHBX = 4; //维护保修
        public static final int APPLY_ST = 5;  //食堂
    }

    public static class CarInfo {
        public static final String CAR_ID = "car_id";
        public static final String CAR_TRANSACT_ID = "car_transact_id";
        public static final String CAR_TRANSACT_HISTROY_ID = "car_transact_histroy_id";
        public static final int CAR_CHOOSE = 103;
        public static final int DRIVER_CHOOSE = 104;
        public static final int CAR_CHOOSE_OK = 105;
        public static final int DRIVER_CHOOSE_OK = 106;
        public static final String CAR_PORITION = "car_porition";
        public static final int SURE_OK = 107;
        public static final int CAR_TRANSACT_OK = 108;
        public static final String CAR_PLAN = "car_plan";
    }

    public static class RepairInfo {
        public static final String REPAIR_ID = "reapir_id";
        public static final String REPAIR_RANSACT_ID = "reapir_transact_id";
        public static final int REPAIR_PORITION_OK = 131;
        public static final int REPAIR_TRANSACT_OK = 132;
        public static final int REPAIR_FINISH_OK = 133;
    }

    public static class MealInfo {
        public static final String MEAL_ID = "meal_id";
        public static final String MEAL_RANSACT_ID = "meal_transact_id";
        public static final int MEAL_RANSACT_OK= 120;
        public static final int LEADER_ID = 121;
        public static final int ROOM = 122;
    }

    public static class MeetingInfo {
        public static final String MEETING_SELECT_ID = "meeting_select_id"; //选中的会议室id
        public static final String MEETING_SELECT_DATE = "meeting_select_date";
        public static final String MEETING_ID = "meeting_id"; //会议室申请单id
        public static final String MEETING_COUNT = "meeting_count";
    }

    public static class ApplyDetail {
        public static final String MEETING_ID = "meeting_id";
    }

    public static class TransactDetail {
        public static final String MEETING_TRANSACT_ID = "meeting_transact_id";
        public static final String MEETING_DB_ID = "meeting_db_id";
        public static final int MEETING_TRANSACT_OK = 101;
    }

    public static class CHOOSEADDRESS{
        public static final String TKAEOUT_CHOOSE = "takeout_choose";
        public static final String MEAL_CHOOSE = "meal_choose";
    }

    public static class TakeoutMeal {
        public static final String MENU_WEEK = "menu_week";
        public static final String TAKEOUT_ID = "takeout_id";
        public static final String CHECKED_ST = "checked_st";
        public static final int PASTA = 0; //面食
        public static final int DELICATESSEN = 1; //熟食
        public static final int MEAL_TWO = 2; //达到面食每日两份
        public static final int TAKEOUT_OK = 3; //确认或取消外卖订单成功
    }

    public static class Purview {
        public static final int REPAIR = 28; //维修
        public static final int MEETING_SIGN = 2;  //会议签字
        public static final int MEETING_CHECK = 5; //会议审核
        public static final int MEETING_PORTION = 6; //会议分配
        public static final int MEETING_SERVICE = 7; //会议服务
        public static final int CAR_SIGN = 9;  //用车签字
        public static final int CAR_CHECK = 12; //用车审核
        public static final int CAR_PORTION = 13; //用车分配
        public static final int CAR_SERVICE = 14; //用车服务
        public static final int CANTEEN_SIGN_LEVER1 = 16; //食堂一级领导签字
        public static final int CANTEEN_CHECK = 19;  //食堂审核
        public static final int CANTEEN_PORTION = 20; //食堂分配
        public static final int CANTEEN_SIGN_LEVER2 = 30; //食堂二级领导签字
    }

    public static Map<Integer, String> meetingTransactList = new HashMap<>();
    public static Map<Integer, String> carTransactList = new HashMap<>();
    public static Map<Integer, String> canteenTransactList = new HashMap<>();


    public static Map<Integer, String> getMeetingTransactList() {
        meetingTransactList.put(Purview.MEETING_SIGN, "待签字");
        meetingTransactList.put(Purview.MEETING_CHECK, "待审核");
        meetingTransactList.put(Purview.MEETING_PORTION, "待分配");
        meetingTransactList.put(Purview.MEETING_SERVICE, "待服务");
        return meetingTransactList;
    }

    public static Map<Integer, String> getCarTransactList() {
        carTransactList.put(Purview.CAR_SIGN, "待签字");
        carTransactList.put(Purview.CAR_CHECK, "待审核");
        carTransactList.put(Purview.CAR_PORTION, "待分配");
        carTransactList.put(Purview.CAR_SERVICE, "待服务");
        return carTransactList;
    }

    public static Map<Integer, String> getCanteenTransactList() {
        canteenTransactList.put(Purview.CANTEEN_SIGN_LEVER1, "待签字");
        canteenTransactList.put(Purview.CANTEEN_CHECK, "待审核");
        canteenTransactList.put(Purview.CANTEEN_PORTION, "待分配");
        canteenTransactList.put(Purview.CANTEEN_SIGN_LEVER2, "待签字");
        return canteenTransactList;
    }


    public static List<String> statusWaitList = Arrays.asList(
            new String[]{
                    "", "待盖章", "待办公室审核", "待科长审核" ,
                    "待会务组长分配", "已完成", "", "","",
                    "办公室驳回", "科长驳回"});
    public static List<String> statusYetList = Arrays.asList(
            new String[]{
                    "", "已签字", "已盖章", "办公室已审核" ,
                    "科长已审核" , "已完成","", "","",
                    "办公室驳回", "科长驳回"}
    );



    //用车
    public static List<String> carWaitList = Arrays.asList(
            new String[]{
                    "待签字", "待盖章", "待主任审核", "待车队长分配"
                    ,"待完成", "待评价", "已评价", "已评价",
                    "签字驳回", "审核驳回", "分配驳回"});
    public static List<String> carYetList = Arrays.asList(
            new String[]{
                    "待签字", "已签字", "已盖章", "主任已审核",
                    "车队长已分配", "已完成", "已评价","已评价",
                    "签字驳回", "审核驳回", "分配驳回"}
    );


    //食堂
    // 0待一级领导签字
    //1 已签字，待盖章
    //2 已盖章，待二级领导签字 (区分管领导)
    //3 已签字，待审核
    //4 已审核，待分配
    //5已分配，待就餐
    //6已就餐（完成）
    //7一级领导驳回
    //8 二级领导驳回
    //9审核驳回
    //10分配驳回

    public static List<String> canteenWaitList = Arrays.asList(
            new String[]{
                    "待签字", "待盖章", "待区领导签字", "待主任审核",
                    "待餐科长分配", "已完成" ," " , "签字驳回",
                    "区领导驳回", "审核驳回", "分配驳回"}
    );

    public static List<String> canteenYetList = Arrays.asList(
            new String[]{
                    "待签字" , "已签字", "已盖章", "区领导已签字", "主任已审核",
                    "餐科长已分配", "已完成","签字驳回",
                    "区领导驳回", "审核驳回", "分配驳回"});


    public static List<String> repairList = Arrays.asList(
            new String[]{"待接单", "待完成", "待评价", "已评价"} // 走分配的话，0是待分配
    );

    public static List<String> takeoutList = Arrays.asList(
            new String[]{"待付款", "已取码", "已撤销"}
    );


}
